package com.skt.manage.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.skt.common.annotation.Excel;
import com.skt.common.core.domain.BaseEntity;

/**
 * 医生科室管理对象 doctordepartments
 * 
 * @author ffbaby
 * @date 2025-02-21
 */
public class Doctordepartments extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分配唯一标识符 */
    private Long assignmentId;

    /** 关联到Doctors表的doctor_id，表示该分配对应的医生 */
    private Long doctorId;

    /** 科室名称 */
    @Excel(name = "科室名称")
    private String departmentName;

    /** 开始分配日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始分配日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 结束分配日期，默认为空表示当前有效 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束分配日期，默认为空表示当前有效", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 医生信息管理信息 */
    private List<Doctors> doctorsList;

    public void setAssignmentId(Long assignmentId) 
    {
        this.assignmentId = assignmentId;
    }

    public Long getAssignmentId() 
    {
        return assignmentId;
    }
    public void setDoctorId(Long doctorId) 
    {
        this.doctorId = doctorId;
    }

    public Long getDoctorId() 
    {
        return doctorId;
    }
    public void setDepartmentName(String departmentName) 
    {
        this.departmentName = departmentName;
    }

    public String getDepartmentName() 
    {
        return departmentName;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }

    public List<Doctors> getDoctorsList()
    {
        return doctorsList;
    }

    public void setDoctorsList(List<Doctors> doctorsList)
    {
        this.doctorsList = doctorsList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("assignmentId", getAssignmentId())
            .append("doctorId", getDoctorId())
            .append("departmentName", getDepartmentName())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("doctorsList", getDoctorsList())
            .toString();
    }
}
